<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <!-- css 文件 -->
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/foundation/5.5.3/css/foundation.min.css">
    <!-- jQuery 库 -->
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

    <!-- JavaScript 文件 -->
    <script src="http://cdn.static.runoob.com/libs/foundation/5.5.3/js/foundation.min.js"></script>

    <!-- modernizr.js 文件 -->
    <script src="http://cdn.static.runoob.com/libs/foundation/5.5.3/js/vendor/modernizr.js"></script>




</head>
<body>
<div>
    <nav class="top-bar" data-topbar>
        <ul class="title-area">
            <li class="name">
                <!-- 如果你不需要标题或图标可以删掉它 -->
                <h1><a href="#">后台管理</a></h1>
            </li>
            <!-- 小屏幕上折叠按钮: 去掉 .menu-icon 类，可以去除图标。
            如果需要只显示图片，可以删除 "Menu" 文本 -->
            <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
        </ul>

        <section class="top-bar-section">

            <ul class="right">

                <if condition="$session eq null">
                    <li><a href="<{:U('Login/login')}>">登录</a></li>
                    <else />
                    <li><a href="">欢迎<{$session['tname']==''?$session['sname']:$session['tname']}></a></li>
                    <li><a href="<{:U('Login/loginout')}>">退出</a></li>
                </if>
            </ul>
        </section>
    </nav>
</div>
<div class='row'>
    <div class="small-2 columns">
        <ul class="side-nav">
            <volist name="menus" id="menus">
            <li><a href="/index.php/<{$menus.url}>" target="<{$menus['target']?'_blank':'_self'}>">
               <{$menus.mname}>
                </a>
            </li>
            </volist>
        </ul>
    </div>
    <div class="small-10 columns">
        <block name="content">

        </block>
    </div>
</div>
<!-- 初始化 Foundation JS -->
<script>
    $(document).ready(function() {
        $(document).foundation();
    })
</script>
</body>
</html>